<?php
require_once 'C:/wSys/PHP/PEAR/SOAP/Client.php';
$wsdl_url = 'https://smsexpress.tmn.pt/smsexpress-webservices/SubmissionManager2?wsdl';
$WSDL     = new SOAP_WSDL($wsdl_url);

$app_name = 'novo_cliente';
$body_msg = 'mensagem de teste';
$sender = 'MoneyExpress';
$mobile_mumber ='968050656';

$client = $WSDL->getProxy(); 

// CURL options to bypass SSL certificate checking
$client->setOpt('curl', CURLOPT_VERBOSE, 1);
$client->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0);
$client->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0);
			
	$params1 = array ('application' => $app_name,
			'username' => '12132021',
			'password' => 'rXrkMxFE');
			
	$params2 = array ('message' => $body_msg,
			'recipients' => $mobile_mumber,
			'sender' => $sender,
			'validity' => 24);

//$client->sendSmsSubmission($params1,$params2);
echo "enviado com sucesso - automatico";
